package com.bdqn.text;

public class Car extends MotoVehicle {
    private String Type;//品牌

    public String getType() {
        return Type;
    }

    public void setType(String type) {
        Type = type;
    }
    public Car(String no, String brand, String Type){
        super(no, brand);
        Type=getType();
    }

    public Car(String type) {
        Type = type;
    }

    @Override
    public int calRent(int days) {
        if("1".equals(Type)){//1.别克Gla
            return 600*days;
        }else if("2".equals(Type)){//2.宝马550i
            return 500*days;
        }else{
            return 300*days; //3.别克林荫大道
        }
    }
}
